package com.app.teaware.bean;


import com.alibaba.fastjson.annotation.JSONField;

import java.util.ArrayList;

public class WareListBean extends BaseListBeanXF {

    @JSONField(name = "records")
    private ArrayList<WareListData> list = new ArrayList<WareListData>();

    @JSONField(name = "records")
    public ArrayList<WareListData> getList() {
        return list;
    }

    @JSONField(name = "records")
    public void setList(ArrayList<WareListData> list) {
        this.list = list;
    }

    @JSONField(serialize = false)
    public void addListBean(WareListBean listbean) {
        if (listbean == null)
            return;
        if (this.getCurrent() == INIT_PAGE) {
            setList(listbean.getList());
        } else {
            if (list == null)
                list = new ArrayList<WareListData>();
            list.addAll(listbean.getList());
        }
        setListBeanData(listbean);
    }

}
